package volleyball.control;

/**
 * An exception that will be thrown if a Player is ever added to a 
 * Game that already contains a Player with the same name. In this way
 * the Set holding the Players in the Game will always have unique keys.
 * @author Joshua Kulhavy-Sutherland
 *
 */
public class RepeatingPlayerException extends Exception {
	/**
	 * A generated Serial ID that I generated via Eclipse.
	 *TODO Read about what this means
	 */
	private static final long serialVersionUID = 4165350432605779179L;

	/**
	 * Prints out the name of the Player that was going to be inserted 
	 * into the Set.
	 * @param player name of teh Player that was going to be inserted into the Set
	 */
	public RepeatingPlayerException(String player){
		System.out.println("Player "+player+" is already in the Game object.");
	}
}
